package com.egoonet.msg;

import org.json.JSONObject;

public class RTMsg {
	private String eventName;
	private String data;
	
	public RTMsg(){}
	
	public RTMsg(String eventName, String data){
		this.eventName = eventName;
		this.data = data;
	}
	
	public String toString(){
		JSONObject json = new JSONObject();
		json.put("eventName", eventName);
		json.put("data", data);
		return json.toString();
	}

	public String getEventName() {
		return eventName;
	}

	public void setEventName(String eventName) {
		this.eventName = eventName;
	}

	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}
}
